package cn.wolfcode.qo;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class QueryObject {
    private int currentPage = 1;//当前页
    private int pageSize = 5;//每页数量

    private String keyword;//通过关键字查询

    public int getStart(){
        return (currentPage - 1) * pageSize;
    }
}
